<include file="Home/Public/Header" />
    <link rel="stylesheet" href="__CSS__/login/common.css">
    <link rel="stylesheet" href="__CSS__/login/loginReg.css">
<link rel="stylesheet" type="text/css" href="__CSS__/global.css">
<link rel="stylesheet" type="text/css" href="__CSS__/global_new.css">
    <script type="text/javascript">
        function setCookie(name, value)
        {
            var argv = setCookie.arguments;
            var argc = setCookie.arguments.length;
            var expires = (argc > 2) ? argv[2] : null;
            if(expires!=null)
            {
                var LargeExpDate = new Date();
                LargeExpDate.setTime(LargeExpDate.getTime() + (expires*1000*3600*24));
            }
            document.cookie = name + "=" + escape (value)+((expires == null) ? "" : ("; expires=" +LargeExpDate.toGMTString()));
        }

        function getCookie(Name)
        {
            var search = Name + "=" ;
            if(document.cookie.length > 0)
            {
                offset = document.cookie.indexOf(search);
                if(offset != -1)
                {
                    offset += search.length;
                    end = document.cookie.indexOf(";", offset);
                    if(end == -1) end = document.cookie.length;
                    return unescape(document.cookie.substring(offset, end));
                }
                else return "";
            }
        }
        function enterSearch(event){
            var eventObj = event || window.event;
            if(eventObj.keyCode == 13){
                $('#hlkOK').click();
            }
        }
    </script>
</head>
<body>
<include file="Home/Member/LoginHead" />
<div class="w100 rel h600">
    <div id="loginPageLogoLinkUrl" class="loginBody">
        <div class="w1190 clearfix rel">
            <!-- 登陆框可点区域开始 -->
            <div class="loginLeft l"> <a class="loginLeftLink" target="_blank"></a> </div>
            <!-- 登陆框可点区域结束 -->
            <div class="loginRight r" style="height: auto;padding-bottom: 12px;">
                <div class="loginBox">
                    <div class="loginTitle clearfix">
                        <h1 class="l c3">用户登录</h1>
                        <div class="loginReg r"> <a href="{:U('Home/Member/Register')}" class="noAccount">还没有游戏卖账号? </a><a href="{:U('Home/Member/Register')}" class="loginRegLink" target="_blank">马上注册</a> </div>
                    </div>
                    <div class="loginMain">
                        <form id="loginForm" action="{:U('Home/Member/Login')}" method="post">
                            <input type="hidden" value="{$think.get.url}" />
                            <div class="comIptBox userIptBox">
                                <label for="" class="comIptIcon IptIconLeft"><i class="iptIconInner icon1"></i></label>
                                <input id="username" tabindex="1" name="username" type="text" class="comIpt loginUserIpt" data-error="请输入账号，账号是已验证的手机号或用户名" value="" autocomplete="off">
                                <label for="" class="comIptIcon IptIconRight hide delIcon"><i class="iptIconInner icon1"></i></label>
                                <p class="placeholder">手机号码/用户名</p>
                            </div>
                            <div class="passContainer mt20">
                                <div class="comIptBox">
                                    <label for="" class="comIptIcon IptIconLeft"><i class="iptIconInner icon2"></i></label>
                                    <input id="password_text" value="请输入密码" tabindex="2" type="text" class="comIpt loginPwdIpt color9" data-error="请输入密码" onkeydown="enterSearch(event);" autocomplete="off">
                                    <label for="" class="comIptIcon IptIconRight loginEye"><i class="loginEyeIcon icon3" id="showPwd"></i></label>
                                </div>
                                <div class="comIptBox hide">
                                    <label for="" class="comIptIcon IptIconLeft"><i class="iptIconInner icon2"></i></label>
                                    <input id="password" name="password" tabindex="2" type="password" class="comIpt loginPwdIpt" data-error="请输入密码" onkeydown="enterSearch(event);" autocomplete="off">
                                    <label for="" class="comIptIcon IptIconRight loginEye"><i class="loginEyeIcon icon3" id="showPwd"></i></label>
                                </div>
                            </div>
                            <div class="checkCodeBox clearfix" >
                                <div class="comIptBox comPureIptBox l">
                                    <input type="text" class="pureIpt" data-error="请输入验证码" maxlength="4" onkeydown="enterSearch(event);" id="img_valid" name="img_valid" tabindex="4">
                                    <p class="placeholder codePlaceholder">验证码</p>
                                </div>
                                <div class="codeImgBox l middle" style="margin-top:0"><img src="{:U('Home/Api/VerifyCode')}" width="90" height="45" class="codeImg middle" alt=""></div>
                                <span class="changeBox r" style="width: 50px;line-height:22px">看不清? <a href="" class="changeOne">换一张</a></span> </div>

                        </form>
                    </div>
                    <if condition="$error == true">
                        <php>$hide = '';</php>
                    <else />
                        <php>$hide = 'hide';</php>
                    </if>
                    <div class="loginError clearfix {$hide}">
                        <i class="loginErrorIcon iconfont l"></i>
                        <span class="loginErrorText">{$error_text}</span>
                    </div>
                    <a id="hlkOK" class="loginBtn tc" tabindex="5">登&nbsp;&nbsp;&nbsp;录</a>
                    <div class="loginFunction clearfix">
                        <div class="l">
                            <!--<label for="autoLogin" class="middle">
                                <input type="checkbox" name="" id="autoLogin" class="middle">
                                <span>自动登录</span>
                            </label>-->
                        </div>
                        <a href="{:U('Home/Member/ForgetPassword')}" class="loginForgotPwd">忘记密码</a> </div>


                </div>
            </div>
        </div>
    </div>
</div>
<include file="Home/Public/footer" />
<script type="text/javascript" src="__SCRIPT__/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="__SCRIPT__/loginReg.js"></script>
</body>
</html>